﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PPTModel
{


	public string PPTName { get; set; }

	public string Background { get; set; }

	public string Title { get; set; }

	public List<Slide> SlideList { get; set; }

}


public class Slide
{
	//文档、试题
	public int ContentType { get; set; }

	public List<PPTItem> ElementList { get; set; }

}


public class PPTItem
{
	public ItemType Type { get; set; }

	public string ItemContent { get; set; }

	public List<SubItem> SubListItem { get; set; }
}

public class SubItem
{
	public string ID { get; set; }
	public bool Load { get; set; }
	public string ItemName { get; set; }

	public string Content { get; set; }
	/// <summary>
	/// key Attribute ,
	/// </summary>
	public Attribute Attributes { get; set; }

	public Point StartPosition { get; set; }
	public Point EndPosition { get; set; }

	public Point StartScale { get; set; }

	public Point EndScale { get; set; }

	public string SubmitUrl { get; set; }

	public List<TargetAction> OnClikck { get; set; }

	public List<TargetAction> OnDrag { get; set; }

	public List<TargetAction> OnEndDarg { get; set; }

	public string OnLoad { get; set; }

}

public class Attribute
{
	public Attribute()
	{
		ItemColor = "#FFFFFF";
		FontSize = 24;
		Style = 0;
		Underline = false;

	}

	public string ItemColor { get; set; }
	public int FontSize { get; set; }
	public FontStyle Style { get; set; }
	public bool Underline { get; set; }
	public string BackGround { get; set; }
}

public enum ItemType
{

	Text,

	Image,

	Button,

	Audio
}

public class TargetAction
{
	public string ID { get; set; }
	public string Action { get; set; }
	public string ClassName { get; set; }
}
public enum ForwordType
{
	Left = 1,//
	Right,
	Up,
	Down
}


public enum ActionType
{
	Left_FlyIn
}
public class Point
{
	public float x { get; set; }
	public float y { get; set; }
}